﻿<Window x:Class="LayoutCanvasSample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <!--note: change default grid layout to canvas layout, by changing the tag-->
    <Canvas>
        <!--note: position the control by assign the attached property of top and left-->
        <Button Canvas.Left="33" Canvas.Top="26" Content="Button" Height="23" Name="button1" Width="75" />
        <!--note: set the label of control by using 'Content' attribute or by using content directly-->
        <!--note: if not set height and width, then size changes to suit content-->
        <TextBox Canvas.Left="33" Canvas.Top="71" Height="22" Name="textBox1" >
            this is cheka speaking, and control's size  changes according to its content
        </TextBox>
        <RadioButton Canvas.Left="144" Canvas.Top="33" Content="RadioButton" Height="16" Name="radioButton1" />
        <CheckBox Canvas.Left="292" Canvas.Top="33" Content="CheckBox" Height="16" Name="checkBox1" />
    </Canvas>
</Window>
